import App from './App'
import store from "./store"
import uView from "uview-ui";
import config from './utils/config.js';
import request from './utils/request.js';
import fui from './common/fui-app'

Vue.use(uView);
// 挂载Vuex
Vue.prototype.$store = store;
// 配置文件
Vue.prototype.$c = config;
// http请求
Vue.prototype.$H = request;


// #ifndef VUE3
import Vue from 'vue'
import BaiduMap from 'vue-baidu-map'
import wybButton from '@/components/wyb-button/wyb-button.vue'

Vue.component('wyb-button', wybButton)
Vue.config.productionTip = false
Vue.prototype.fui = fui
App.mpType = 'app'
const app = new Vue({
    ...App,
	store
})

Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: '5FJq8NUcLgr8s8LDEnpvGKcXsdOVoQ3I'
})

app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  app.config.globalProperties.fui = fui;
  return {
    app
  }
}
// #endif